package fr.uniscol.siecle.dao.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import fr.uniscol.siecle.model.Division;

public class DivisionRowMapper implements RowMapper<Division> {

	@Override
	public Division mapRow(ResultSet rs, int rowNum) throws SQLException {
		
		Division div = new Division();
		div.setCode(rs.getString("CODE"));
		div.setCode_rne(rs.getString("CODE_RNE"));
		div.setLibelle_long(rs.getString("LIBELLE_LONG"));
		
		return div;
	}
}
